package com.ruoyi.system.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 小程序用户信息对象 zzw_user_info
 *
 * @author ruoyi
 * @date 2024-06-02
 */
public class ZzwUserInfo extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 唯一标识 */
    @Excel(name = "用户ID")
    private Integer id;

    /** 小程序openid */
    private String openid;

    /** 真实姓名 */
    @Excel(name = "真实姓名")
    private String contactName;

    /** 真实联系电话 */
    @Excel(name = "真实联系电话")
    private String contactNumber;

    /** 真是微信号 */
    @Excel(name = "真是微信号")
    private String wechatNumber;

    /** 微信昵称 */
    @Excel(name = "微信昵称")
    private String nickName;

    /** 性别（男 女） */
    private String gender;

    /** 地市 */
    private String city;

    /** 省份 */
    private String province;

    /** 国家 */
    private String country;

    /** 微信头像url */

    private String avatarUrl;

    /** 是否删除(1是 0否) */

    private String isDetele;

    /** 邀请码 */
    private String inviteCode;

    /** 邀请码 */
    private String parentInviteCode;


    /** 默认为0或NULL表示顶级用户 */
    @Excel(name = "上级用户ID")
    private Long parentUserId;

    /** 层级级别（01 一级 02 二级 03 三级 ） */
    @Excel(name = "层级级别")
    private int level;
    /** 上级路径 */
    @Excel(name = "层级路径")
    private String parentTree;


    public String getParentInviteCode() {
        return parentInviteCode;
    }

    public void setParentInviteCode(String parentInviteCode) {
        this.parentInviteCode = parentInviteCode;
    }

    public void setId(Integer id)
    {
        this.id = id;
    }

    public Integer getId()
    {
        return id;
    }
    public void setOpenid(String openid)
    {
        this.openid = openid;
    }

    public String getOpenid()
    {
        return openid;
    }
    public void setContactName(String contactName)
    {
        this.contactName = contactName;
    }

    public String getContactName()
    {
        return contactName;
    }
    public void setContactNumber(String contactNumber)
    {
        this.contactNumber = contactNumber;
    }

    public String getContactNumber()
    {
        return contactNumber;
    }
    public void setWechatNumber(String wechatNumber)
    {
        this.wechatNumber = wechatNumber;
    }

    public String getWechatNumber()
    {
        return wechatNumber;
    }
    public void setNickName(String nickName)
    {
        this.nickName = nickName;
    }

    public String getNickName()
    {
        return nickName;
    }
    public void setGender(String gender)
    {
        this.gender = gender;
    }

    public String getGender()
    {
        return gender;
    }
    public void setCity(String city)
    {
        this.city = city;
    }

    public String getCity()
    {
        return city;
    }
    public void setProvince(String province)
    {
        this.province = province;
    }

    public String getProvince()
    {
        return province;
    }
    public void setCountry(String country)
    {
        this.country = country;
    }

    public String getCountry()
    {
        return country;
    }
    public void setAvatarUrl(String avatarUrl)
    {
        this.avatarUrl = avatarUrl;
    }

    public String getAvatarUrl()
    {
        return avatarUrl;
    }
    public void setIsDetele(String isDetele)
    {
        this.isDetele = isDetele;
    }

    public String getIsDetele()
    {
        return isDetele;
    }
    public void setInviteCode(String inviteCode)
    {
        this.inviteCode = inviteCode;
    }

    public String getInviteCode()
    {
        return inviteCode;
    }
    public void setParentUserId(Long parentUserId)
    {
        this.parentUserId = parentUserId;
    }

    public Long getParentUserId()
    {
        return parentUserId;
    }
    public void setLevel(int level)
    {
        this.level = level;
    }

    public int getLevel()
    {
        return level;
    }

    public void setParentTree(String parentTree)
    {
        this.parentTree = parentTree;
    }

    public String getParentTree()
    {
        return parentTree;
    }


    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("openid", getOpenid())
                .append("contactName", getContactName())
                .append("contactNumber", getContactNumber())
                .append("wechatNumber", getWechatNumber())
                .append("nickName", getNickName())
                .append("gender", getGender())
                .append("city", getCity())
                .append("province", getProvince())
                .append("country", getCountry())
                .append("avatarUrl", getAvatarUrl())
                .append("isDetele", getIsDetele())
                .append("createTime", getCreateTime())
                .append("inviteCode", getInviteCode())
                .append("parentUserId", getParentUserId())
                .append("level", getLevel())
                .append("parentTree", getParentTree())
                .toString();
    }
}
